package com.edu.order.controller;

import com.edu.api.entity.common.ResponseDTO;
import com.edu.order.service.PayOrderService;
import com.edu.order.service.UserCourseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 描述
 * @author: xnylh
 * @createDate: 2023/1/10 0010 10:04
 */
@RestController
@RequestMapping("payOrder")
public class PayOrderController {

    @Autowired
    PayOrderService payOrderService;

    @GetMapping("/getCourseIds")
    public ResponseDTO getCourseIds(@RequestParam("userId") String userId){
        return payOrderService.getPayOrderIds(userId);
    }

}
